<extend name="Public/base"/>

<block name="body">
	<!-- 标题 -->
	<div class="main-title">
		<h2>文件上传</h2>
	</div>

	<form action="{:U()}" enctype="multipart/form-data"method="post" class="form-horizontal">
        <div class="form-item">
            <label class="item-label">选择文件<span class="check-tips">（淘宝联盟导出的订单报表）</span></label>
            <div class="controls">
                <input type="file" class="text input-large" name="file" />
            </div>
        </div>
        
        <div class="form-item">
            <button class="btn submit-btn " id="submit" type="submit" target-form="form-horizontal">确 定</button>
            <!-- <button class="btn btn-return" onclick="javascript:history.back(-1);return false;">返 回</button> -->
        </div>
    </form>

    <!-- 数据表格 -->
    <div class="data-table">
		<table>
            <!-- 表头 -->
            <thead>
                <tr>
                    <!-- <th class="row-selected row-selected">
                        <input class="check-all" type="checkbox">
                    </th> -->
                    <th>#</th>
                    <th>订单编号</th>
					<th>创建时间</th>
                    <th>订单状态</th>
                    <th>付款金额</th>
                    <th>结算时间</th>
                    <th>佣金金额</th>
					<th>补贴金额</th>
                </tr>
            </thead>

            <notempty name="list">
            <p>共计订单数据: {$info.total} 条, 其中失效订单 {$info.cancel} 条, 已结算 {$info.deal} 条, 已支付 {$info.payed} 条.</p>
            <p>
                <button class="btn ajax-get" url="{:U("Order/save")}">确认导入</button>
            </p>
            </notempty>
            <!-- 列表 -->
            <tbody>
                <notempty name="list">
                <volist name="list" id="data">
                    <tr>
                        <!-- <td><input class="ids" type="checkbox" value="{$data['id']}" name="ids[]"></td> -->
                        <td>{$data.rowId}</td>
                        <td>{$data.oid}</td>
                        <td>{$data.createTime}</td>
                        <td>{$data.status}</td>
                        <td>{$data.amount}</td>
                        <td>{$data.dealTime}</td>
                        <td>{$data.commissionAmount}</td>
                        <td>{$data.subsidyAmount}</td>
                    </tr>
                </volist>
                <else/>
                <td colspan="8" class="text-center"> aOh! 暂时还没有内容! </td>
                </notempty>
            </tbody>
        </table>
	</div>
	<!-- 分页 -->
    <div class="page">
        {$_page}
    </div>
</block>
<block name="script">
</block>
